package cc.javaee.bbs.service;

import cc.javaee.bbs.dao.InfoDao;
import cc.javaee.bbs.model.Info;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("infoService")
public class InfoService {
    @Autowired
    InfoDao infoDao;

    public void update(Info info) {
        infoDao.update(info);
    }

    public Info find() {
        int id = 1;
        return infoDao.find(id);
    }


}
